import request from '@/utils/request'

/**
 * 拣选任务分页查询
 * @param {查询条件} data
 */
export function pageTaskPick(query) {
  return request({
    url: 'TaskManage/TaskPick/pageList',
    method: 'get',
    params: query,
  })
}

/**
 * 新增拣选任务
 * @param data
 */
export function addTaskPick(data) {
  return request({
    url: 'TaskManage/TaskPick',
    method: 'post',
    data: data,
  })
}
/**
 * 修改拣选任务
 * @param data
 */
export function updateTaskPick(data) {
  return request({
    url: 'TaskManage/TaskPick',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取拣选任务详情
 * @param {Id}
 */
export function getTaskPick(id) {
  return request({
    url: 'TaskManage/TaskPick/' + id,
    method: 'get'
  })
}

/**
 * 删除拣选任务
 * @param {主键} pid
 */
export function delTaskPick(pid) {
  return request({
    url: 'TaskManage/TaskPick/delete',
    method: 'POST',
    data: pid
  })
}
